#include<stdio.h>
int main()
{
	float a, b;
	char c;
	printf("Input two numbers and an operator(+,-,*,/):\n");
	scanf_s("%f %c %f", &a, &c,1, &b);
	switch (c)
	{
	case'+':
		printf("%.2f\n", a + b); 
		break;
	case'-':
		printf("%.2f\n", a - b); 
		break;
	case'*':
		printf("%.2f\n", a * b); 
		break;
	case'/':
		if (b != 0)
		{
			printf("%.2f\n", a / b);
		}
		else 
		{
			printf("Divisor cannot be zero!\n");
		}
		break;
	default:
		printf("Invalid operator!\n");
		break;
	}
	return 0;
}